s = 'hello'
print('{0:*<20}'.format(s))
print('{0:*>20}'.format(s))
print('{0:*^20}'.format(s))
print(s.center(20,'*'))
# 千位分隔符
print('{0:,}'.format(1234567))
print('{0:,}'.format(12345.67))
print('{0:,.2f}'.format(1230.4567))
a = 16
print("{0:b},{0:o},{0:x}".format(a))